<template>
  <div class="SalesDetail">
    <!-- 头部 --state-->
    <div class="side_1"></div>
    <span class="add_1">销售计划</span>
    <div class="btn">
      <el-button type="info" icon="el-icon-back" class="btn_fanhui" @click="Fh">返回</el-button>
    </div>
    <!-- 头部 --end-->
    <div class="addplan_box">
      <div class="from_sex">
        <el-row :gutter="5">
          <el-col :span="4">
            <el-form :model="formInline" class="demo-form-inline" label-width="83px">
              <el-form-item label="计划年份">
                <el-input v-model="formInline.bianhao"></el-input>
              </el-form-item>
            </el-form>
          </el-col>
          <el-col :span="4">
            <el-form :model="formInline" class="demo-form-inline" label-width="83px">
              <el-form-item label="计划月份">
                <el-input v-model="formInline.bianhao"></el-input>
              </el-form-item>
            </el-form>
          </el-col>
          <el-col :span="4">
            <el-form :model="formInline" class="demo-form-inline" label-width="83px">
              <el-form-item label="编号">
                <el-input v-model="formInline.bianhao"></el-input>
              </el-form-item>
            </el-form>
          </el-col>
           <div class="from_btn">
          <!--<el-button type="warning" size="mini" @click="dialogVisible=true">周计划</el-button>-->
        </div>
        </el-row>
      </div>
      <div class="addplan_table">
        <template>
          <el-table :data="tableData">
            <el-table-column type="index" label="序号" prop="xuhao" align="center" width="79"></el-table-column>
            <el-table-column label="主机厂" align="center" width="100">
              <template slot-scope="scope">
                <el-input v-model="scope.row.main"></el-input>
              </template>
            </el-table-column>
            <el-table-column align="center" label="产品图号" width="100">
              <template slot-scope="scope">
                <el-input v-model="scope.row.pic"></el-input>
              </template>
            </el-table-column>
            <el-table-column label="产品名称" align="center" width="100">
              <template slot-scope="scope">
                <el-input v-model="scope.row.name"></el-input>
              </template>
            </el-table-column>
            <el-table-column prop="f" label="销量需求" align="center" width="100">
              <template slot-scope="scope">
                <el-input v-model="scope.row.need"></el-input>
              </template>
            </el-table-column>
            <el-table-column label="需求时间及数量" align="center">
              <el-table-column prop="one" label="1" align="center" width="30"></el-table-column>
              <el-table-column prop="two" label="2" align="center" width="30"></el-table-column>
              <el-table-column prop="three" label="3" align="center" width="30"></el-table-column>
              <el-table-column prop="four" label="4" align="center" width="30"></el-table-column>
              <el-table-column prop="five" label="5" align="center" width="30"></el-table-column>
              <el-table-column prop="six" label="6" align="center" width="30"></el-table-column>
              <el-table-column prop="seven" label="7" align="center" width="30"></el-table-column>
              <el-table-column prop="eight" label="8" align="center" width="30"></el-table-column>
              <el-table-column prop="nine" label="9" align="center" width="30"></el-table-column>
              <el-table-column prop="ten" label="10" align="center" width="30"></el-table-column>
              <el-table-column prop="eleven" label="11" align="center" width="30"></el-table-column>
              <el-table-column prop="twelve" label="12" align="center" width="30"></el-table-column>
              <el-table-column prop="thirteen" label="13" align="center" width="30"></el-table-column>
              <el-table-column prop="fourteen" label="14" align="center" width="30"></el-table-column>
              <el-table-column prop="fifteen" label="15" align="center" width="30"></el-table-column>
              <el-table-column prop="sixteen" label="16" align="center" width="30"></el-table-column>
              <el-table-column prop="seventeen" label="17" align="center" width="30"></el-table-column>
              <el-table-column prop="eighteen" label="18" align="center" width="30"></el-table-column>
              <el-table-column prop="nineteen" label="19" align="center" width="30"></el-table-column>
              <el-table-column prop="twenty" label="20" align="center" width="30"></el-table-column>
              <el-table-column prop="twenty-one" label="21" align="center" width="30"></el-table-column>
              <el-table-column prop="twenty-two" label="22" align="center" width="30"></el-table-column>
              <el-table-column prop="twenty-three" label="23" align="center" width="30"></el-table-column>
              <el-table-column prop="twenty-four" label="24" align="center" width="30"></el-table-column>
              <el-table-column prop="twenty-five" label="25" align="center" width="30"></el-table-column>
              <el-table-column prop="twenty-six" label="26" align="center" width="30"></el-table-column>
              <el-table-column prop="twenty-seven" label="27" align="center" width="30"></el-table-column>
              <el-table-column prop="twenty-eight" label="28" align="center" width="30"></el-table-column>
              <el-table-column prop="twenty-nine" label="29" align="center" width="30"></el-table-column>
              <el-table-column prop="thirty" label="30" align="center" width="30"></el-table-column>
            </el-table-column>
            <el-table-column prop="sum" label="本月合计" align="center" width="120"></el-table-column>
            <el-table-column prop="note" label="备注" align="center" width="100"></el-table-column>
          </el-table>
        </template>
      </div>
    </div>
    <el-dialog
      title
      :visible.sync="dialogVisible"
      width="55%"
      :modal-append-to-body="false"
      :close-on-click-modal="false"
    >
      <div class="table_dia">
        <el-table :data="tableDatas" border>
          <el-table-column prop="first" label="第一周(2日-8日)" align="center"></el-table-column>
          <el-table-column prop="second" label="第二周(9日-15日)" align="center"></el-table-column>
          <el-table-column prop="third" label="第三周(16日-22日)" align="center"></el-table-column>
          <el-table-column prop="fourth" label="第四周(22日-23日)" align="center"></el-table-column>
          <el-table-column prop="fifth" label="第五周(24日-30日)" align="center"></el-table-column>
        </el-table>
      </div>
    </el-dialog>
    <div class="box_btn">
       <el-button @click="a" type="primary">确认</el-button>
      <el-button class="bm_btn" onclick="window.history.go(-1)" type="info">返回</el-button>
    </div>
  </div>
</template>
<script>
export default {
  data() {
    return {
      formInline: {},
      dialogVisible: false,
      tableData: [
        {
          xuhao: "1",
          main: "江淮客车",
          pic: "Yu-8776",
          name: "车盖",
          need: "1000",
          one: "",
          two: "10",
          eleven: "10",
          thirteen: "11",
          sum: "200"
        },
        {
          main: "江淮客车",

          pic: "Yu-8776",
          name: "车盖",
          need: "1000",
          one: "",
          three: "10",
          nineteen: "10",
          fourteen: "11",
          sum: "200"
        },
        {
          main: "江淮客车",

          pic: "Yu-8776",
          name: "车盖",
          need: "1000",
          one: "",
          three: "10",
          nineteen: "10",
          fourteen: "11",
          sum: "200"
        },
        {
          main: "江淮客车",

          pic: "Yu-8776",
          name: "车盖",
          need: "1000",
          one: "",
          three: "10",
          nineteen: "10",
          fourteen: "11",
          sum: "200"
        }
      ],
      tableDatas: [
        {
          first: "34",
          second: "",
          third: "",
          fourth: "",
          fifth: "34"
        },
        {
          first: "34",
          second: "34",
          third: "",
          fourth: "34",
          fifth: ""
        },
        {
          first: "34",
          second: "34",
          third: "",
          fourth: "34",
          fifth: ""
        },
        {
          first: "34",
          second: "34",
          third: "",
          fourth: "34",
          fifth: ""
        },
        {
          first: "34",
          second: "34",
          third: "",
          fourth: "34",
          fifth: ""
        },
        {
          first: "34",
          second: "34",
          third: "",
          fourth: "34",
          fifth: ""
        }
      ]
    };
  },
  //   created() {
  //     this.state1 = this.$route.query.state1;
  //     this.state2 = this.$route.query.state2;
  //   },
  methods: {
    Fh() {
      window.history.go(-1);
    }
  }
};
</script>
<style lang="scss" scoped>
@import "@/assets/scss/base.scss";
.side_1 {
  width: 5px;
  height: 16px;
  background-color: $Header_color;
  margin-left: 10px;
  margin-top: 20px;
}
.add_1 {
  margin-left: 20px;
  margin-top: -20px;
  float: left;
  font-size: 18px;
  font-weight: 400;
}
.btn_fanhui {
  margin-top: -20px;
  margin-right: 20px;
  float: right;
}
.addplan_box {
  background: $white;
  width: 98%;
  //   padding: 0 1%;
  margin-top: 50px;
  margin-left: 10px;
  border: 1px solid $bordercolor;
  border-radius: 4px;
  height: 670px;
  .addplan_table {
    margin-top: 30px;
    width: 98%;

    margin-left: 10px;
  }
}
.btn {
  float: right;
}
</style>
<style>
.addplan_title .el-input__inner {
  background: rgba(242, 242, 242, 1);
  border-color: rgba(220, 222, 226, 1);
}
.el-input__inner:hover {
  border-color: rgba(128, 134, 149, 1);
}
.addplan_table .el-input__inner {
  background: rgba(242, 242, 242, 1);
  border-color: rgba(220, 222, 226, 1);
  width: 90%;
  height: 35px;
  text-align: center;
  margin-left: 5px;
  margin-right: 5px;
  font-size: 13px;
  color: #333;
}

.addplan_table .el-table thead.is-group th {
  background: none;
  color: #333;
}

.addplan_table .el-table th > .cell {
  text-align: center;
  padding: 0;
}

.addplan_table .el-table td,
.el-table th {
  padding: 0;
  height: 45px;
}
/* .addplan_table .el-table .cell {
  line-height: normal;
  padding: 0;
} */
.addplan_table .el-table .cell,
.el-table--border td:first-child .cell,
.el-table--border th:first-child .cell {
  padding: 0;
}
.table_dia .el-table th {
  background: rgba(242, 242, 242, 1);
  color: #333;
  height: 25px;
}
.from_btn {
  margin-left: 90%;
}
.from_sex {
  margin-top: 20px;
}
.box_btn{
  text-align: center;
  margin-top: 20px;
}

</style>
